package ar.uba.fi.tonyvaliente.text.filtering;

import java.util.Iterator;
import java.util.LinkedList;

public class CaseFoldingFilter implements TextFilter {

	@Override
	public LinkedList<String> filter(LinkedList<String> text) {
		LinkedList<String> result = new LinkedList<String>();

		for (Iterator<String> it = text.iterator(); it.hasNext();) {
			String s = it.next();
			result.add(s.toLowerCase());
		}
		return result;
	}
}
